package com.yungu.swift.system.finance.dao;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.PageList;
import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.system.finance.model.dto.FinanceRefundDto;
import com.yungu.swift.system.finance.model.param.AdminRefundPageParam;
import com.yungu.swift.system.finance.model.vo.FinanceRefundVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface FinanceRefundMapper extends IMapper<FinanceRefundDto> {

    /**
     * 分页查询
     *
     * @param refundPageParam
     * @param pageBounds
     * @return
     */
    PageList<FinanceRefundVo> queryPageVo(AdminRefundPageParam refundPageParam, PageBounds pageBounds);

    /**
     * 退款账单查询（EXCEL导出）--注意与分页方法保持同名
     *
     * @param refundPageParam 参数集合
     * @return List
     * @date 2019/08/29
     */
    List<FinanceRefundVo> queryPageVo(AdminRefundPageParam refundPageParam);

    /**
     * 查询退款金额
     *
     * @param orderUuid
     * @return
     */
    BigDecimal findRefundAmount(@Param("orderUuid") String orderUuid);
}